﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="calendar.ascx.cs" Inherits="AnyOffice.general.mytable.calendar" %>
<script>
function my_note(CAL_ID)
{
  my_left=document.body.scrollLeft+event.clientX-event.offsetX-50;
  my_top=document.body.scrollTop+event.clientY-event.offsetY+150;
  window.open("/general/calendar/manage/note.aspx?cal_id="+CAL_ID,"note_win"+CAL_ID,"height=200,width=250,status=0,toolbar=no,menubar=no,location=no,scrollbars=auto,top="+ my_top +",left="+ my_left +",resizable=no");
}
</script>
<div id="module_3" style="position: relative;padding-bottom:10px;">
<table class="TableBlock" width="100%" cellspacing="0" cellpadding="2">
	<tr class="TableHeader">
		<td id="module_3_head" class="TableHeader" width="70%">
			<img src="/images/menu/calendar.gif" align="absMiddle"> 日程安排
		</td>
		<td id="module_3_more" align="right">
			<div id="module_3_op" style="float:right;display:none;"><a id="module_3_url" href="#" onclick="_del('3');"><img border="0" src="/images/x.gif" alt="不显示该模块"></a></div>
			<div style="float:right"><a href="/general/calendar/manage/index.aspx">全部</a>&nbsp;</div>
		</td>
	</tr>
	<tr class="TableData" style="background:#FFFFFF url(/images/water/calendar.jpg) no-repeat bottom right">
		<td colspan="2" height="60">
			<asp:Repeater id="rptCalendar" runat="server" EnableViewState="False">
				<ItemTemplate>
					<%# DateTime.Parse(DataBinder.Eval(Container.DataItem,"StartTime").ToString()).ToString("t") %>-<%# DateTime.Parse(DataBinder.Eval(Container.DataItem,"EndTime").ToString()).ToString("t") %>
					<a  style="CURSOR: hand;font-size: 12px;color: #0000ff" onclick='javascript:my_note(<%#DataBinder.Eval(Container.DataItem,"CalId")%>);'>
						<%#DataBinder.Eval(Container.DataItem,"Content")!=DBNull.Value?DataBinder.Eval(Container.DataItem,"Content").ToString().Replace("\n","<br>"):""%>
					</a>
					<br>
				</ItemTemplate>
			</asp:Repeater>
			<asp:Literal id="litCalendar" runat="server"></asp:Literal>
		</td>
	</tr>
</table>
</div>
